<?php
class OORDBMySQLWrapper extends OORDBWrapper
{
	private $object;
	private $table;
	
	public function __construct( OORDBMySQLTable $table, $values )
	{
		$this->table = $table;
		$this->object = new OORDBMySQLGenericObject( $values );
	}
	
	/**
	 * Retrieve the object representing this row of data.
	 * @return object Object representing the row
	 */
	public function object()
	{
		return $this->object;
	}
	
	/**
	 * Save this row with values from its representing object.
	 */
	public function save()
	{
		
	}
	
	/**
	 * Remove this row from the table.
	 */
	public function remove()
	{
		
	}
	
	/**
	 * Retrieve an iterator over the fields' values.
	 * @return Iterator Iterator over row values
	 */
	public function values()
	{
		return $this->object->getIterator();
	}
	
	/**
	 * Get the table associated with this row.
	 * @return OORDBTable Table containing this row
	 */
	public function table()
	{
		return $this->table;
	}
}
?>